package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WindowDefinition {

    private int beginIndex;
    private int endIndex;
    private Identifier newWindowName;
    private WindowSpecification windowSpecification;

    public WindowDefinition(Identifier newWindowName,
                            WindowSpecification windowSpecification) {
        this.beginIndex = newWindowName.getBeginIndex();
        this.endIndex = windowSpecification.getEndIndex();
        this.newWindowName = newWindowName;
        this.windowSpecification = windowSpecification;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getNewWindowName() {
        return newWindowName;
    }

    public WindowSpecification getWindowSpecification() {
        return windowSpecification;
    }
    
}
